package com.zhongkun.datahome.service.res.house;

import com.zhongkun.datahome.service.domain.CustomerHouse;
import com.zhongkun.datahome.service.utils.SensitiveUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author: lifengsheng
 * @Date: 2025/4/16 15:22
 * @Desc
 */
@Data
public class CustomerHouseVo extends CustomerHouse {
    @ApiModelProperty("客户userId（户主）")
    private Long customerUserId;

    @ApiModelProperty("客户商户userId")
    private Long customerTenantUserId;

    @ApiModelProperty("客户姓名")
    private String customerName;

    @ApiModelProperty("客户手机号")
    private String mobile;

    public String getMobile() {
        return SensitiveUtil.sensitiveMobile(mobile);
    }

    public String ofMobile() {
        return mobile;
    }

    public String ofHouseInfo() {
        return String.format("%s-%s", this.getBuildingNum(), this.getRoomNum());
    }
}
